package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.HashMap;
/**
 * 活动积分配置
 */
@Getter
@Setter
@Document(collection = "activity_point_config")
public class ActivityPointConfig extends EntityBase {
    @Indexed
    private String activityId;
    /**
     * 总积分,单位10万,10万积分，配置1.0
     */
    private Double totalPoint;
    /**
     * 积分规则,invite:邀请,ad:看广告,sign-up:签到,share-mini:分享小程序,
     * recieve-paper-ca:领取纸质版,recieve-digit-ca:领取电子版,video:看视频
     * knowledge-challenge:知识挑战,work-collection:作品征集,praxis:实践行动
     * learning:每日学习签到
     * 获取正数，消耗负数
     * 例如:
     * <invite,10>
     * <recieve-digit-ca,-10>
     */
    private HashMap<String, Integer> rules = new HashMap<>();
}
